﻿<Window x:Class="ThemeTester.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="343" Width="384" ResizeMode="CanResizeWithGrip" Style="{StaticResource MainWindow}">
    
    	<DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" LastChildFill="True">
        <Grid DockPanel.Dock="Top" x:Name="TitleBar">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="24"/>
            </Grid.RowDefinitions>
            <Button Grid.Column="3" Content="{DynamicResource MinimizeIcon}" Padding="4,4,4,4" VerticalAlignment="Top" x:Name="MinimizeButton" Click="MinimizeButton_Click"/>
            <Button Grid.Column="4" Content="{DynamicResource MaximizeIcon}" Padding="4,4,4,4" VerticalAlignment="Top" x:Name="MaximizeButton" Click="MaximizeButton_Click"/>
            <Button Grid.Column="5" Content="{DynamicResource CloseIcon}" Padding="4,4,4,4" VerticalAlignment="Top" x:Name="CloseButton" Click="CloseButton_Click" Margin="3,0,0,0"/>
            <ContentControl HorizontalAlignment="Stretch" VerticalAlignment="Top" Width="Auto" Grid.Column="2" Margin="4,1,4,0" x:Name="Grip" MouseMove="Grip_MouseMove">
                <Viewbox VerticalAlignment="Center" HorizontalAlignment="Stretch" Stretch="Fill">
                    <Canvas Width="100" Height="17" VerticalAlignment="Stretch" Background="#01000000">
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,0 L100,0" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,2 L100,2" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,4 L100,4" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,6 L100,6" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,8 L100,8" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,10 L100,10" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,12 L100,12" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,14 L100,14" SnapsToDevicePixels="True"/>
                        <Path Width="100" Stroke="#55FFFFFF" StrokeThickness="1" Data="M0,16 L100,16" SnapsToDevicePixels="True"/>
                    </Canvas>
                </Viewbox>
            </ContentControl>
        </Grid>
            <StatusBar Width="Auto" Height="Auto" DockPanel.Dock="Bottom">
                <StatusBarItem HorizontalAlignment="Right">
                    <ResizeGrip x:Name="ResizeGrip" />
                </StatusBarItem>
    		</StatusBar>
        <Button Height="98" Width="128">Ok</Button>
    </DockPanel>
    
</Window>
